/*
 *  Copyright (C) 2010 glauco
 * 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.balisunrise.common;

import java.io.Serializable;

/**
 *
 * @author glauco
 */
public interface SelectionFieldLayout extends EmbeddedFieldLayout,
        Bindable, Queryable, Criterionable{

    /**
     * Atribui a entidade selecionada.
     * @param entity
     */
    public void setEntity(Serializable entity);

    /**
     * Atribui a Ação de seleção de entidades.
     * @param selectionAction
     */
    public void setSelectionAction(SelectionAction selectionAction);

    /**
     * retorna a Ação de seleção de entidades.
     * @return
     */
    public SelectionAction getSelectionAction();

    /**
     * Atribui o EntitySelection deste SelectionPanelField
     *
     * @param entitySelection
     */
    public void setEntitySelection(EntitySelection entitySelection);

    /**
     * Retorna o EntitySelection deste SelectionPanelField.
     *
     * @return
     */
    public EntitySelection getEntitySelection();

    /**
     * Atribui o SelectionLoader deste SelectionPanelField.
     *
     * @param selectionAction
     */
    public void setSelectionLoader(SelectionLoader selectionLoader);

    /**
     * Retorna o SelectionLoader deste SelectionPanelField.
     *
     * @return
     */
    public SelectionLoader getSelectionLoader();
}
